package com.codedog.entity;

import com.codedog.constant.ClassStateConstant;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ClassManageRequest {
    private List<Integer> internalIds;
    private List<String> classStates;
    private int type;
    private int page;
    private int pageSize;


    public ClassManageRequest(Integer internalId, String... classStates) {
        List<Integer> internalIds = new ArrayList<>();
        internalIds.add(internalId);
        List<String> classStateList = new ArrayList<>();
        for (String classState : classStates) {
            classStateList.add(classState);
        }
        this.internalIds = internalIds;
        this.classStates = classStateList;
        this.type = 1;
        this.page = 1;
        this.pageSize = 1000;
    }
}
